from rest_framework import serializers
from article.models import FirstLevel, SecondLevel, Article

class FirstLevelSerializer(serializers.ModelSerializer):
    class Meta:
        model = FirstLevel
        fields = '__all__'

class SecondLevelSerializer(serializers.ModelSerializer):
    class Meta:
        model = SecondLevel
        fields = '__all__'

class ArticleSerializer(serializers.ModelSerializer):
    class Meta:
        model = Article
        fields = '__all__'
